package cn.qiguai.sphapi.domain;

import lombok.Getter;
import lombok.Setter;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class PayOrder {
	private int id;						//订单id
	private String number;				//订单号
	private Date payTime;				//下单时间
	private int addresseeId;			//收件人id
	private double totalMoney;			//订单总金额
	private int status;					//订单状态 -1：已取消 0：待付款 1：已付款
	private List<ShoppingCartOrder> goodsList;
	private Addressee addressee;

	public String getPayTime() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");

		return sdf.format(payTime);
	}
}
